# 练习1：使用while循环输出1-100之间所有的偶数
# 练习2：使用while循环输出1000-2025之间所有的闰年
# 练习3：使用while循环输出所有的水仙花数（4个）

# i = 1
# while i < 100:
#     if i % 2 == 0:
#         print(i)
#     i = i + 1
#
# print('--------------------------------')
#
# i1 = 1000
# while i1 < 2025:
#     if i1 % 4 == 0:
#         if i1 % 100 == 0 and i1 % 400 == 0:
#             print(i1)
#         elif i1 % 100 != 0:
#             print(i1)
#     i1+=1
#
#
# print('--------------------------------')
#
#
# i2 = 100
# while i2 < 1000:
#     baiweinum = i2 // 100
#
#     num = i2 % 100
#     shiweinum = num // 10
#
#     geweinum = i2 % 10
#     if baiweinum ** 3 + shiweinum ** 3 + geweinum ** 3 == i2:
#         print(i2)
#     i2+=1


# for循环

# s1='abcdefg'
# for n in s1:
#     print(n)


# break
# num1 = 1
# while num1 <= 10:
#     print(num1)
#     if num1 == 5:
#         break
#     num1 += 1
#

#contiue
# num2 = 0
# while num2 <= 20:
#     num2 += 1
#     if num2 == 10:
#         continue
#     print(num2)

#range()

for i in range(3,5):
    print(i)

s = 'abcdef'
for i in range(len(s)):
    print(s[i])